package com.acme.task5;

public class TextModifier {
	public static void main(String[] args) {
		if (args.length != 1 ) {
			System.out.println("invalid number of arguments");
		}
		String str = args[0];
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if (!Character.isDigit(charAtIndex)){
				System.out.println(charAtIndex);
				if (charAtIndex == '+' || charAtIndex == '-')
					System.out.printf("%c", (charAtIndex));
			}
		}
	}
}
